package com.spvs.approval.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spvs.approval.domain.ApprovalSubmitEntity;
import com.spvs.approval.domain.vo.ApprovalSubmitVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import java.util.List;
import java.util.Map;

/**
 * 审批提交信息表
 */
@Mapper
@Repository
public interface ApprovalSubmitMapper extends BaseMapper<ApprovalSubmitEntity> {

    int selectApprovalByStaffId();

    int selectApprovalByCreateUserId(@Param("approvalStatus") int approvalStatus, @Param("createUserId") int createUserId );

    int selectApprovalByStaffId(@Param("approvalStatus") int approvalStatus, @Param("staffId") String staffId );

    Page<ApprovalSubmitEntity> queryApprovalBy(@Param("page") Page page , @Param("param")  Map<String, Object> param);

    List<ApprovalSubmitVo> selectApprovalSubmitVo(@Param("businessId") String businessId);
}
